import java.awt.*;
import java.awt.event.*;
import javax.swing.*;


	public class couchPotato extends JPanel {
	
	public static void main(String[] args) {
		JFrame window = new JFrame("Exploding couch potato animation");
		couchPotato canvas = new couchPotato();
		window.setContentPane(canvas);
		window.setSize(600,400);
		window.setLocation(100,100);
		window.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE);
		window.setResizable(false);
		window.setVisible(true);



	}
	private Timer timer;
	private int FrameNumber;

	public couchPotato() {
		setBackground(Color.WHITE);
		ActionListener action = new ActionListener() {
	public void actionPerformed(ActionEvent evt){
		FrameNumber++;
		System.out.println("Frame Number="+FrameNumber);
	}
	};
		timer = new Timer( 30, action);
	
}

}